# NOTE: the following image name is the openEuler docker images name from dailybuild,
# may need to modify
FROM  openeuler-22.03-lts-next:latest

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

COPY openEuler.repo /etc/yum.repos.d/

RUN yum update -y && yum install -y \
    sudo git tar curl patch shadow-utils make cmake gcc gcc-c++ \
    rpm-build dnf-plugins-core make rpmdevtools wget python3-pip

RUN yum update -y && yum install -y openssl-devel libffi-devel \
    python3-devel python3-wheel

RUN sed -i s'/TMOUT=300/TMOUT=300000000000/' /etc/bashrc

RUN rpmdev-setuptree

WORKDIR /root/
RUN git clone https://gitee.com/openeuler/openstack \
    && cd openstack/tools/oos \
    && pip3 install -r requirement.txt \
    && python3 setup.py develop
